﻿
namespace Pixels.Core.Extentions
{
    using Pixels.ContentTypeItems;
    using Pixels.ExtentedListItems;
    using Pixels.ListItems;

    public static class ExtentedListItemExtentions
    {
        public static IContentTypeItem FetchContentItem(this IExtentedListItem ExtentedListItem)
        {
            return ContentTypeItemAdapter.GetInstance().ContentItemFetchByExtentedListItemID(ExtentedListItem.ExtentedListItemID);
        }
        
        public static IListItem FetchListItem(this IExtentedListItem ExtentedListItem)
        {
            return ListItemAdapter.GetInstance().ListItemFetchByExtentedListItemID(ExtentedListItem.ExtentedListItemID);
        }
    }
}
